package com.ruoyi.rsikManage.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rsikManage.mapper.TAlgoTreeMapper;
import com.ruoyi.rsikManage.domain.TAlgoTree;
import com.ruoyi.rsikManage.service.ITAlgoTreeService;

/**
 * 算法树配置Service业务层处理
 *
 * @author sxygsj
 * @date 2024-06-27
 */
@Service
public class TAlgoTreeServiceImpl implements ITAlgoTreeService
{
    @Autowired
    private TAlgoTreeMapper tAlgoTreeMapper;

    /**
     * 查询算法树配置
     *
     * @param id 算法树配置主键
     * @return 算法树配置
     */
    @Override
    public TAlgoTree selectTAlgoTreeById(Long id)
    {
        return tAlgoTreeMapper.selectTAlgoTreeById(id);
    }

    /**
     * 查询算法树配置列表
     *
     * @param tAlgoTree 算法树配置
     * @return 算法树配置
     */
    @Override
    public List<TAlgoTree> selectTAlgoTreeList(TAlgoTree tAlgoTree)
    {
        return tAlgoTreeMapper.selectTAlgoTreeList(tAlgoTree);
    }

    /**
     * 新增算法树配置
     *
     * @param tAlgoTree 算法树配置
     * @return 结果
     */
    @Override
    public int insertTAlgoTree(TAlgoTree tAlgoTree)
    {
        return tAlgoTreeMapper.insertTAlgoTree(tAlgoTree);
    }

    /**
     * 修改算法树配置
     *
     * @param tAlgoTree 算法树配置
     * @return 结果
     */
    @Override
    public int updateTAlgoTree(TAlgoTree tAlgoTree)
    {
        return tAlgoTreeMapper.updateTAlgoTree(tAlgoTree);
    }

    /**
     * 批量删除算法树配置
     *
     * @param ids 需要删除的算法树配置主键
     * @return 结果
     */
    @Override
    public int deleteTAlgoTreeByIds(Long[] ids)
    {
        return tAlgoTreeMapper.deleteTAlgoTreeByIds(ids);
    }

    /**
     * 删除算法树配置信息
     *
     * @param id 算法树配置主键
     * @return 结果
     */
    @Override
    public int deleteTAlgoTreeById(Long id)
    {
        return tAlgoTreeMapper.deleteTAlgoTreeById(id);
    }
}
